package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.RescueTypeMapper;
import com.ruoyi.merchant.domain.RescueType;
import com.ruoyi.merchant.service.IRescueTypeService;

/**
 * 救援类型Service业务层处理
 * 
 * @author zzy
 * @date 2024-09-13
 */
@Service
public class RescueTypeServiceImpl implements IRescueTypeService 
{
    @Autowired
    private RescueTypeMapper rescueTypeMapper;

    /**
     * 查询救援类型
     * 
     * @param id 救援类型主键
     * @return 救援类型
     */
    @Override
    public RescueType selectRescueTypeById(Long id)
    {
        return rescueTypeMapper.selectRescueTypeById(id);
    }

    /**
     * 查询救援类型列表
     * 
     * @param rescueType 救援类型
     * @return 救援类型
     */
    @Override
    public List<RescueType> selectRescueTypeList(RescueType rescueType)
    {
        return rescueTypeMapper.selectRescueTypeList(rescueType);
    }

    /**
     * 新增救援类型
     * 
     * @param rescueType 救援类型
     * @return 结果
     */
    @Override
    public int insertRescueType(RescueType rescueType)
    {
        return rescueTypeMapper.insertRescueType(rescueType);
    }

    /**
     * 修改救援类型
     * 
     * @param rescueType 救援类型
     * @return 结果
     */
    @Override
    public int updateRescueType(RescueType rescueType)
    {
        return rescueTypeMapper.updateRescueType(rescueType);
    }

    /**
     * 批量删除救援类型
     * 
     * @param ids 需要删除的救援类型主键
     * @return 结果
     */
    @Override
    public int deleteRescueTypeByIds(Long[] ids)
    {
        return rescueTypeMapper.deleteRescueTypeByIds(ids);
    }

    /**
     * 删除救援类型信息
     * 
     * @param id 救援类型主键
     * @return 结果
     */
    @Override
    public int deleteRescueTypeById(Long id)
    {
        return rescueTypeMapper.deleteRescueTypeById(id);
    }
}
